package com.interview.spring.aop.app;

import com.interview.spring.aop.dao.UserDao;
import com.interview.spring.aop.dao.UserDaoImpl;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.aspectj.lang.annotation.DeclareParents;
import org.aspectj.lang.annotation.Pointcut;
import org.omg.CORBA.PUBLIC_MEMBER;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.stereotype.Component;

/**
 * @author: zsg
 * @description:
 * @date: 2019/11/23 19:00
 * @modified:
 */
//@Aspect
//@Component
public class TestAspectj {

    @Pointcut("execution(* com.interview.spring.aop.dao.*.*(..))")
    public void pintCut(){
        System.out.println("point cut");
    }

    @Before("com.interview.spring.aop.app.TestAspectj.pintCut()")
    public void before(){
        System.out.println("before");
    }
}
